<% title (t"general.sitename") + " - " + (t"activity.general.title") %>
<% queue_js "bootstrap-datepicker" %>
<% queue_js 'redactor/redactor' %>
<% queue_css "datepicker" %>
<% queue_js "bootstrap-timepicker" %>
<% queue_css "bootstrap-timepicker" %>
<% queue_css 'redactor/css/redactor' %>

<legend><h3 class="uppercase">Gửi tin/hoạt động mới</h3></legend>

<%= form_for(@activity) do |f| %>
    <div class="control-group">
      <div class="control-label"><%= f.label :title %></div>
      <div class="controls">
        <div class="input-prepend">
          <span class="add-on"><i class="icon-circle-arrow-right"></i></span>
          <%= f.text_field :title %>
        </div>
      </div>

    </div>
    <div class="control-group">
      <div class="control-label"><%= f.label :activity_data %></div>
      <div class="controls">
        <div class="input-prepend">
          <%= f.text_area :activity_data, :rows => 5%>
        </div>
      </div>
    </div>
    <div class="control-group">
        <input type="submit" class="btn btn-primary" value="<%=t"activity.form.create" %>">
    </div>
<% end %>
<script type="text/javascript">
    $(document).ready(
            function()
            {
                $('textarea').redactor({
                    path : '<%= asset_path('redactor') %>'
                });
            }
    );
</script>